package com.alibaba.algo.apiimpl.user;

import com.alibaba.algo.cooperation.common.BaseResult;
import com.alibaba.algo.cooperation.usercomponent.service.user.SysSyncDetailLogService;
import com.alibaba.algo.cooperation.usercomponent.vo.req.user.SysSyncDetailLogRequestVO;
import com.alibaba.algo.domain.user.SysSyncDetailLogDomain;
import com.alibaba.algo.entity.user.SysSyncDetailLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
public class SysSyncDetailLogServiceImpl implements SysSyncDetailLogService {

    @Autowired
    private SysSyncDetailLogDomain sysSyncDetailLogDomain;


    @Override
    public BaseResult insert(SysSyncDetailLogRequestVO sysSyncDetailLogRequestVO) {
        SysSyncDetailLog sysSyncDetailLog = new SysSyncDetailLog();
        BeanUtils.copyProperties(sysSyncDetailLogRequestVO, sysSyncDetailLog);
        sysSyncDetailLogDomain.insert(sysSyncDetailLog);
        return BaseResult.buildSuccess();
    }

    @Override
    public BaseResult delete(SysSyncDetailLogRequestVO sysSyncDetailLogRequestVO) {
        return null;
    }

    @Override
    public BaseResult update(SysSyncDetailLogRequestVO sysSyncDetailLogRequestVO) {
        return null;
    }
}
